﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Novell.DirectoryServices.Linq
{
    /// <summary>
    /// Specifies a search path for nested contexts.
    /// </summary>
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments"), AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public sealed class DirectorySearchPathAttribute : Attribute
    {
        #region Constructors

        /// <summary>
        /// Creates a new search path attribute.
        /// </summary>
        /// <param name="path">Relative search path.</param>
        public DirectorySearchPathAttribute(string path)
        {
            Path = path;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Relative search path.
        /// </summary>
        public string Path { get; private set; }

        #endregion
    }
}
